home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Q:Hex to Decimal?
- Date: Fri, 12 Apr 96 12:05:43 GMT
- Organization: none
- Message-ID: <829310743snz@genesis.demon.co.uk>
- References: <DpqLyJ.8Jy@rci.ripco.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <DpqLyJ.8Jy@rci.ripco.com> mambuhl@ripco.com "Martin Ambuhl" writes:
-
- >> I'm struggling with the reverse situation, a function to convert an
- >>integer into a HEX string. Anybody got any ideas?? Thanks in advance for
- >>your help.
- >
- > sprintf(target_string,"x",(unsigned)your_integer);
-
- You'd better make that "%x"!
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-